#pragma once

#include <list>
#include "ClientThread.h"

class Client;
class Chunk;

class ThreadChunks : public ClientThread {
public:
	ThreadChunks(Client* cli);
	virtual void run();
	void EnqueueChunkBuild(Chunk* chunk);
	int getQueueSize();

private:
	void ChunksSolo();
	void ChunksMulti();
	Client* client;
	int last_x;
	int last_y;
	std::list<Chunk*> chunks_build;
	u32 ticks;
};
